package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 项目决策信息：客情关系
 *
 * @Author: hongxiao
 * @date: 2021-11-16 20:43
 */
@Getter
public enum  DecisionInfoRelationshipEnum {
    // 很好
    FINE("1", "enum.decisionInfoRelationship.name.fine", "fine", "#52C41A"),
    // 较好
    BETTER("2", "enum.decisionInfoRelationship.name.better", "better", "#1677FF"),
    // 一般
    GENERAL("3", "enum.decisionInfoRelationship.name.normal", "normal", "#00BACF"),
    // 较差
    POOR("4", "enum.decisionInfoRelationship.name.poor", "poor", "#FF3B30"),
    // 恶劣
    ABOMINABLE("5", "enum.decisionInfoRelationship.name.abominable", "abominable", "#722ED1"),
    ;

    private String code;
    private String name;
    private String attr;
    private String color;

    DecisionInfoRelationshipEnum(String code, String name, String attr, String color) {
        this.code = code;
        this.name = name;
        this.attr = attr;
        this.color = color;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
